//
//  Grass.m
//  OcDay1Homework
//
//  Created by dllo on 16/5/21.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "Grass.h"

@implementation Grass
-(void)setName:(NSString *)name{
    _name = name;
}
-(NSString *)name{
    return _name;
}
-(void)setArea:(NSString *)area{
    _area = area;
}
-(NSString *)area{
    return _area;
}
-(void)setLife:(NSInteger)life{
    _life = life;
}
-(NSInteger)life{
    return _life;
}
-(void)myPrint{
    NSLog(@"%@ %@ %ld",_name,_area,_life);
}
-(instancetype)initWithName:(NSString *)name withArea:(NSString *)area withLife:(NSInteger)life{
    self = [super init];
    if (self) {
        _name = name;
        _area = area;
        _life = life;
    }
    return self;
}
@end
